package com.pi.pro.xcmg.am.was.job.check;


import com.pi.common.job.AbstractJob;
import com.pi.pro.xcmg.am.was.checker.SapWasDeliveryNoteLoadBeatChecker;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 功能:
 * ---------------------------------------
 * 导入自制件
 *
 */
@DisallowConcurrentExecution
public class SapWasDeliveryNoteLoadBeatCheckJob extends AbstractJob {

    @Autowired
    private SapWasDeliveryNoteLoadBeatChecker checker;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        begin("Check-SAP/WAS-DN-LOAD接口... ");

        JobDataMap map=context.getJobDetail().getJobDataMap();
        String sender=map.getString("SENDER");
        String receiver=map.getString("RECEIVER");

        checker.perform();
        end("Check-SAP/WAS-DN-LOAD接口完成... ");
    }

}
